modify z path