improving settings panel - missing to make the algorithm work properly