refactor processing of unit/reading elements