updating density 2d profiles