new changes in the function 'load' are added