reinitialize arrays