allow lattice constants instead of density