refining and tuning