changed to result.to_s