using destructuring to avoid 2 related calls