fixed MAX_CP reference