update  _initDoctype() method