define user modes to Mode type