homework 10 error fixed