extract some DO magic numbers into variables