cleaning up and syncing