fix function returns
return list of dicts