updated readme transition function