experiment using alists instead of trees