Proper transition coding