destructuring and refs