change some variable name and add comment.