fixed error rate that was 1/4 too low
added repeat building code