separated allValues and fun2 for clarity