z and prefix functions