made some vardumps in the code to test.