change loaddata, and optimization, improve speed