change collection update collections from sets to arrays