added ability to extract subsections