changed to params as params, rather than params as an array