query param implementation