revise pipeline code for new version of data structure