updated parseCondition