ok I missed that when I refactored this function (used to need a class var) will change to a local variable