correted error while selecting dta