add density and histgram