added dthandler function
added dthandler function