implemented mapper and filter