preserve list variable in outer scope