need to valgrind some corruption