delete unused variables & add to logging message for multiple load function