outputs factorial