rearrange if statements to catch too many arguments first