almost done with gamma