found bug in ion densities

maybe not executable