destructuring of function parameters