reduced the use of the l variable for list (ambiguity with 1)