move set to it's own func