added cases for all modes