before i made everything invgamma