added pairings parsing