removed deprecated calls to DOM class