changing params to list of dict