corrected ends