fixed error that occurs with rewriting debugValue method
took closer look at math changes and went with Andrew's