rename variable: list -> lst

to avoid shadowing the built-in function of the same name