build dictionary