implemented templated functions collector class generation