debugging code added for visualization