FIX: to allow iterations for non-scalar values