fixes to mode parametr