tiny modify of gain threshold