kept only one function to get dtd