fix incorrect remove filter call
replace deprecated constants with function calls