updating conditioncheck procedure