replace printf with puts
could not use puts cause it puts additional \n at the end of the line