editing routines