code and manual update