basic structure of nesting done.