add logs and comments.