corrected errors in previous commit