fixed new stats function to allow through NA results