supporting backward queries