loop 3 times to encode then fail