added sampling density