much nicer with `enumerate` indeed!