adjusts some magic numbers