refactor handling of value params and update all values