add if statement for checking 'not condition'