pair.c added