implement setMode() method