implemented doctypes