reshape for sharedarray