refactored RecordSequenceInputFormat