modified the way to parse sequence file