complete the basic data management part