implement dict option