possible workaround for internal compiler error in visual studio