edited text and formatted code