factorial comparison