another small style thing, but since the constant is only relevant to the function it might make more sense to live inside it