changed atom.distanceFrom to negate z axis.