Rewrite get_possible_set