renamed x to z