changed input and output to sequence file format