Removed the w local variable