enabling query formatting functionality