add hashmap in cp for single entry of constant in cp;