adding substructure search