moved where i'm initializing the end date