added in patch randomization pipeline stage