implement edit commands