start of editiong double pairs