added if statement support