remove debug code, return a value from toString