makes dates consolidate correncly