add qeury method