update docstring for query