updated to fix toString with -> instead of commas and brackets