implement reading feature function
refactoring packages