very minor refactor