refactor detail subsection