does a toarray to make sure it doesn't reiterate