parsing the if test