subset works for all types of elements in array
added some more fun stuff