add ascontiguousarray to be sure