update the comments for ease of understanding