modifications done for the necessary for edit and delete the goal first and goal second