text correction, code reformat