adding updated linear vis code