change transition to visit