element class functions