added attribute check to fasta iterator