removed inutilized code in visualization