added semicolons where they should be and overlooked the code. Testing the code now to make sure it works in all scenarios as it should.