preparing for loading