add dictionary method