converted to VS2012