transforms multi-level associations