incorporated substringdb and substringtree