a lot of work on lists, a reduce-like accelerating magic hack