use type constants instead of literal numbers