use type constants if possible