fixed bugs, linked vis2 and 3