modify loaddata

use more cozy list comprehesion to generate data