removing casting of density to int