change end time to unsigned long