stop the code from being loaded more than once