Replaced dict with array