should be using const in a few places, fixing this.