modified time_align