insert the original root record where it belongs

copy(&data[ptr],&recordvalue);