real  function added to filter in stead of dummy function