insert has bugs in concurrent version