changed name of function w to correct one