make the filter of on-off signal conditional too to avoid overhead.