cleaning time indexes related to an output