corrections to code segments