update progress
alter to C90 standard
cleanup root