adding start and end dates to the api