this is duplicated. I'd move this to be a module level constant then outside of this function.