added hasSub to structure