implemented mapped queries