minor error modifications