removed the newline insertion in puts.
