put code in an edit block