improve : track doctype