add some comment and print log