removed synchronous call code