data in departments is also now packed in LinkedHashMap to preserve order