figuring out dates and stuff