break down errors and fix typo.