switch back to old min.'s. Trying to fix iteration counter