variable i was used both in for loop scope and within list compr.