adds helper function to set param2query