working && if statement