fix typo and simplify destructuring assignment of parameter properties