filter move to controller optimization