use sync method