implemented batch tuning
impl repeat param