set-mode added