added a cpp trick