added some filtering to the feedback loop