fix integrate