fixed integration again