loadData is obsolete