modify insertDataHelper