changed business logic of teleportation for fix looping