using arrays as maps