added constants for magic numbers