updeted transect code