Adapted the comment above the code to reflect the change made as it already mentioned that z could be set to 1.