reset before emitting result