update computation