optimize timeline