Refactoring loaderHelper