fixed !! pairs ordering (fixes #1)