(fix) params is a hash, not an array