implemented standing queries