changed the loading prototype