fix errors found in review