before integration