capture query from params[];