trying to get this stop filtering working with numpy