change to density, const qualifiers, change param struct