converted to VS2013