fix wrong y value usage instead of z value in pos methods