Bugfix root array

refactored the mechanism if a struct belongs into linked