Revert "Debug statements"

This reverts commit 27783e59f2e7604fdd7d20a819ebead812b6adde.
Fixed pass by reference