now adds the last transition