just pushing the if statement to one line