corrected errors found with inspector