updating if condition