change cmd to newCmd