remove numpy 1.8 dependence