moved the load function