minor refactor to use constant