density function altered for island