added rough pairmatch