refactoring load structure