change integration function