added disp functionality and movedensity works