reg_pipeline example