generator for elements with conf