changed map with array