preparing density for release