cuboid query working and tested