removing magic numbers.