update of if statement