yay it passes valgrind now, just created the objects on stack  to avoid memory issues