method loaddata implemented