improved java logic, now deletes correctly, occasionally a region drops to zero