finish edit-snippet