added function to extract accession