try algo with debug5