Cost filter