if w is smaller than z then w is assign the value of z but somehow a z smaller whan w is bypassing it