updated sync to close the project