type for vregode. Debug for TJ. Please remove check()