trace and generate transveral path