Added iterate variable to list function in expand