taking care of magic numbers