protect against zero denom