Changed map to integer array