fixed c++ function section