better detection for first section.