refactored getting transition by ip