refactor reading feature data