shouldn't dt be declared here as well?