overflow logic update