adapting the active pipe for the new corpus and the new representation