add reading indices function for FASTA