redeclaration of element_type fix