changed visual.c, output works for 1 core