clean and add comment clear.cc