head section cleanup.