add comments on handleUpdate