initial density function as public