reduce memory, mutation dic to array