modify tocmd