added sleep for syncing