replaced z with depth in ionization deposits