removing redundant data access