fixed factorial bug, and more