improve code block and rm useless debug log
delete unused code to improve re variable