move destructuring to accessor methods