outlined filtering for return type thing