adding dict api