fold over a list of errors to apply
use a list comprehension for powers of 2. Still not happy with this whole pow thing