added multiple sets for union and intersection