refactoring in App_Code