need to turn arrays into sets