Switch dict to set