update and add timestamp