base for speed filtering