removing redundant code and adding startDate