MZ Can't seem to overwrite functions that return a value?

this feels like it should be a simple fix but i cannot figure it out, whenever i try to overwrite a function that returns a value it doesn't do anything and never runs. specifically i wanted to change the max columns of the battleStatus window like so:
Scene_Battle.prototype.maxCols = function() {
console.log('why do i not work');
return 2;
};
this however doesn't get called since nothing gets printed to the console. i've disabled all other plugins and even removed all other functions and it still did nothing. looked at multiple other plugins and tutorials and they all seem to do it this way so i don't know what i'm missing. i've done this with many other functions and it only ever works if they don't return anything.
👋 Scene_Battle.prototype.maxCols does not exist in the RMMZ core scripts. I think you meant to write Window_BattleStatus.prototype.maxCols instead, e.g.
JavaScript:
Window_BattleStatus.prototype.maxCols = function() {
    return 2;  // originally 4
};
(I've made this mistake a lot, e.g. accidentally writing Game_Message instead of Window_Message.)
ahh that was totally it, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/cant-seem-to-overwrite-functions-that-return-a-value.139429/