refactored reader
getting ready for position calculation