completed update comment function