fixed the sync call