finished bio function, changed returnDates to getDates