adds basic custom filter functionality to data received from api