remove unrelated factorial function