slice to extract range instead of filtering (forgot last index)