changed cp_scoping allocation