refactors data structure access question