prepare numpy migration for speed