reduce error surface of reginsert, set flags to 0 for inserted node