fixing the margin of error calculation (so as to not be doubly-included)