trying to make path bounce minimizer work