refining diversity script