fixed cows calculation

hopefully