modified saveForMainGoal