add get pair method for pmielement