check statistics works