removed dependency on ndtypes