implemented sweeping of handle tables