dealing with all Inf values for sigma