bug fix in 3d, visualization improve