built on vs2012
warnings removed