change list to set and add a convenient method using varargs