write out of if statement to compose.