some changes for data insert