finally got incomplete gamma stuff working