working on implementing the translation as a pipeline, refactoring