added preparse stage for if statements