Auto add parent to collection
small fix: replace list(... for i in x) to for i in x: