small modifications for parameter adjustment