fixed deprecation warnings caused by new Set syntax