moved startDate endDate out of global namespace