rewrite after a series of test runs