modify input-listen-stop func