dealing with magic numbers