filter the data on client side