changed linear filter to work