changed teleport functions back