added a template cross section piece of code