remove "on", use params.fetch to clean up ruby