added getDates instance variable