prevent compile error in vs