initial visualize code