caught an error within the code I just added and fixed my code so that it will behave properly under those circumstances.