added print_density()