add mode for selecting mode