add some print and comments