added definition for cp