cleaned up code. took out the test cases and no longer used lines of code.