remove error handling from querySync()