made it work with maps and collections one level deep