change filter hook to extend arguments