update 3d density