put cmd in correct place