update filtering and line plotting