added getMode()