for numpy 1.6