refined source code