add to_set method