add some print to check the result