use rest and emitter