refactoring let internal-use function with static keyword