poor attempt at new transition function