edited params.fetch argument because it was not accepting a symbol.