added mass center calculus to density plot