make code more readable; arrbitrarily change a -1 to a 0.