corrected updating functions, included in log