changed async call to sync call