add to dictionary method