sum library corrected