added unique function to workflow