removed the sizes and made the array unique