using set instead of array with number