changed some puts to print