closure section is mostly done