send subelement class to rec func