code to get the query param