new changes are added to function 'objloader'
more conditions are added to function 'objloader'