changing puts to echo