make arrays work