use sum with list comp / enumerate