first part of the loading process