added return values to saveCondition