fixes #1 providing way to persist value from current iteration