would crash if dates set to null