made the call synchronous