Unless you are trying to do something specific that you understand but I don't...just remove that line. You already set z in a more sensible looking way a few lines above.
BTW the code would be much easier to understand if it had a few comments and if you used meaningful names for variables not single letters like z. Who knows what a z is supposed to contain?
Steve