found a timing bug - example in comments