integration logic