more effective cpp done