linear filter now works correctly-very exact