pass num of elements to discover