changed coordinates from maps to vectors, and groups of coordinates from vectors to sets