delete redundancy,add comments.