ok, move it to cpp. thanks a lot!