refactor subject setting