update the codes of this program