implement query scope