This looks suspect to me. Do you mean ```ndim```?