finish error checks homework3