updated the conditions.