modify density function, see Screenshot03.png
minor fix
minor fix