added auto bracketing