how the Terminator works