start work on if statement generation