typed Update code