minor changes in old functions and pipeline