updating threshold_module (edit and new)