try algo with debug12