moved some magic numbers into easier to edit places