implemented go-back-N