update pre code