simplify params pattern matching