return instead of continue if there are no parents