declare variable remainingCommand

declare variable remainingCommand for easier debugging