attribute functions. renamed dom functions