fix broken code block and duplication at bottom.