fixed factorial formula