change data from tuple to dict