removed Nan return value from weird limits issues with floats in pdf function