slice to extract range instead of filtering (forgot a lot of stuff)