small changes to findDates
update for dates