fixed gamma loop final. I'm stupid.