adding a filter hook for data