added get_dates method