get rid of all the transitions that don't improve things