cleaning up factorials