update class elementType