small tweaks to precision and recall calculations