use npy_intp for array size