also updated sequence file function