modify for visual studio 2012