fixes gamma formular