implemented 'get_sync_status' function