tuning parameters in refine layers