attempt avoid nans and all 0