moving cs-plot-function in own file