delete the no useful code
update the main