un-nested if statement