changed hashes to collections