this is working code with ROB integrated in our pipeline.