integrate phases