edits seven segment code