work with sync query