add ifThenElse