accidentally changed async call to sync