renamed newGoal to new_goal for keeping with formatting