Bugfix root array

refactored the mechanism if a struct belongs into linked
that is really an awesome pattern.