save and remove of pairs