removed loop for getting the next most date