updating if statement