added length and iterations