fixed return statement for insert, but it still isn't working well, look at the tests in main