move transitive association declaration to the end