uncomment w==1 comment out w==2