small rewrite
reorder .doFoo() methods