cleanup as_ to element class