removal unused pairs