tried to fix c++ magic