adding support for multiple densities