Rewritten the gamma function such that it was restored to its previous
version