add z to path