renamed filter to be consistent with directive