new changes are added to function 'load'
the destructor 'objloader' is added