Replaced k,v in loops with proper names