corrected signs of gamma functions