fix algebra mistake and spelling error