initial setup #376
first iteration and reset #376