fix bug in clean
display percent in generate_update