modify for visualstudio2013 compatibility