output dict instead of list