work on integral_g