fix bug in edit code that replaced previous methods