syncing the directories