change allocation of arrays