may consider using the existing query parameter function in utils