disabled warnings for Visual Studio
bug fix: ptr is actually ptr_