A few changes in pair parser

First line can be deleted, I use it because of ide settings.