destructuring via rest elements