update a lots of codes