created visOutput method