refinement: remove some magic numbers.