only run filter on frontend