added backend for query