done calling the function update timestamp