change a few puts to print