pairs array is too large!!!