pass dict instead of str