replace with CMap is done and sorting constants are deleted