changed to sync