updating condition