`filter` could be 1d and we add the second axis