minor error corrections (see comments)