modify loaddata

use list comprehesion