add and edit code