fixed minor erors in hw3