refactored to use constant