commented some code that could result in inf values