set terminator, gain