almost done first part of visulizer