change public density calculation

change public density calculation from c-density to density