re #4 - rebuild the json for easier arrays in for loops. renamed the collections