tuning the parameters for medium set