query method edits

**still need to work on this