add loadDatas method.