implement RestrainCommandPair and map e/- pair