fixing remove pairs