changed print to puts