check its a valid mode