update if statement