puts instead of print in some places in ruby