use sync instead of async code