valid mode works