correcting SelltoString function