renamed edit record debug function