define zoffset
remove superfluous calls