issue when no mode is provided