fix for tuples vs dict