scoping of badstart was wrong