turning some magic numbers into constants