progress on gamma fitting