some changes made to how ndarrays are treated