edit code before