mode should be dynamic
Tweaking changes from y expansion
tidy examples