converted to visual studio 2012