assert so we don't take log of negative numbers.