extractBasedOnStructureSeq implement