get the generator to work based on the submitted dress code