minor refactor since it is only defined right there anyway