fixed factorial import