modified for tuning params