change synchronized map to array