made subject loading a function so it can be re-called