code refractoring for section header style