remove max_errors from decorate