changed puts to print