correct the bugs and visuallize