changed fail trials from 5 to 1000