change tuple to array