objective function sliders working