setNameFilter method