+ add threshold for determining zero double