add phoenix factorial