transform mod and sph query